{
  "info": {
    "_postman_id": "spay4-ogp-hmac-api",
    "name": "SPay4 OGP Agent API",
    "description": "SPay OGP Agent API v1 的 Postman collection；契約以對接文件為準。Collection 認證為 No Auth：collection 層 pre-request script 以 CryptoJS 產生 X-Api-Key、X-Timestamp、X-Nonce、X-Signature（SPAY2 相容的 POST /public/agentOrder 改為只帶 Signature header，值為 secret 原文），負向情境由 script 內的對照表觸發。Mutation 僅供手動逐筆執行；API key／secret 只填在本機 environment，不得匯出或提交。",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "noauth"
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// 由 SPay 產生；請勿手改，更新時重新下載並匯入。",
          "// 簽章字串：METHOD\\nPATH\\nX-Timestamp\\nX-Nonce\\n 後接變數代換後的 UTF-8 body；PATH 為實際送出的 percent-encoded path。",
          "const credentials = {\"agent\":{\"apiKey\":\"agentApiKey\",\"secret\":\"agentApiSecret\"}};",
          "const scenarios = {",
          "  \"POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"auth\":\"spay2\",\"status\":200,\"code\":2000},",
          "  \"POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜冪等重送\": {\"scenario\":\"idempotent\",\"credential\":\"agent\",\"auth\":\"spay2\",\"status\":200,\"code\":2000},",
          "  \"POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜欄位不合法\": {\"scenario\":\"invalidBody\",\"credential\":\"agent\",\"auth\":\"spay2\",\"status\":400,\"code\":40005},",
          "  \"POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"auth\":\"spay2\",\"status\":417,\"code\":40002},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜冪等重送\": {\"scenario\":\"idempotent\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜欄位不合法\": {\"scenario\":\"invalidBody\",\"credential\":\"agent\",\"status\":400,\"code\":40005},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜冪等重送\": {\"scenario\":\"idempotent\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜欄位不合法\": {\"scenario\":\"invalidBody\",\"credential\":\"agent\",\"status\":400,\"code\":40005},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"PUT /v1/agentApi/houseCard — 同步 OGP House Card｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/houseCard — 查詢 OGP House Card｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"GET /v1/agentApi/houseCard — 查詢 OGP House Card｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/houseCard — 查詢 OGP House Card｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/houseCard — 查詢 OGP House Card｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜冪等重送\": {\"scenario\":\"idempotent\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜欄位不合法\": {\"scenario\":\"invalidBody\",\"credential\":\"agent\",\"status\":422,\"code\":40005},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜正向\": {\"scenario\":\"positive\",\"credential\":\"agent\",\"status\":200,\"code\":2000},",
          "  \"GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜錯簽章\": {\"scenario\":\"badSignature\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜過期 timestamp\": {\"scenario\":\"expiredTimestamp\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "  \"GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜nonce 重複\": {\"scenario\":\"duplicateNonce\",\"credential\":\"agent\",\"status\":401,\"code\":40000},",
          "};",
          "const entry = scenarios[pm.info.requestName];",
          "if (!entry) throw new Error(`「${pm.info.requestName}」不在 collection 的情境表內，請重新匯入 collection`);",
          "const credential = credentials[entry.credential];",
          "const apiKey = pm.variables.get(credential.apiKey);",
          "const secret = pm.variables.get(credential.secret);",
          "if (!secret || (entry.auth !== 'spay2' && !apiKey)) throw new Error(`請先在目前 environment 填入 ${credential.apiKey} 與 ${credential.secret}`);",
          "if (!/^https?:\\/\\/[^/]+$/.test(pm.variables.replaceIn('{{baseUrl}}'))) throw new Error('baseUrl 只能是 scheme://host[:port]，不可含 path 或結尾斜線');",
          "if (entry.auth === 'spay2') {",
          "  // SPAY2 相容建單：Signature header 放密鑰原文，不做 HMAC；錯簽章情境在密鑰後多加一個字元。",
          "  pm.variables.set('spay2Signature', entry.scenario === 'badSignature' ? `${secret}x` : secret);",
          "} else {",
          "  // path 變數值視為原文 identity，不先解碼；依 RFC 3986 pchar 規則（pchar 不編碼）產生 canonical segment，與 SPay 驗章的 PATH 相同。",
          "  const segments = pm.request.url.path.map((segment) => encodeURIComponent(pm.variables.replaceIn(segment))",
          "    .replace(/%(?:24|26|2B|2C|3B|3D|3A|40)/g, (escaped) => decodeURIComponent(escaped)));",
          "  pm.request.url.path = segments;",
          "  const path = `/${segments.join('/')}`;",
          "  const body = pm.request.body && pm.request.body.mode === 'raw' ? pm.variables.replaceIn(pm.request.body.raw) : '';",
          "  let timestamp = Math.floor(Date.now() / 1000);",
          "  if (entry.scenario === 'expiredTimestamp') timestamp -= 600;",
          "  let nonce = pm.variables.replaceIn('{{$guid}}').toLowerCase();",
          "  if (entry.scenario === 'duplicateNonce') {",
          "    nonce = pm.variables.get('fixedNonce') || '';",
          "    if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(nonce)) throw new Error('nonce 重複情境需先在 environment 填入 fixedNonce（新的小寫 UUID v4）');",
          "  }",
          "  const message = `${pm.request.method}\\n${path}\\n${timestamp}\\n${nonce}\\n${body}`;",
          "  let signature = CryptoJS.HmacSHA256(CryptoJS.enc.Utf8.parse(message), CryptoJS.enc.Utf8.parse(secret)).toString(CryptoJS.enc.Hex);",
          "  if (entry.scenario === 'badSignature') signature = `${signature.slice(0, -1)}${signature.endsWith('0') ? '1' : '0'}`;",
          "  pm.variables.set('hmacApiKey', apiKey);",
          "  pm.variables.set('hmacTimestamp', String(timestamp));",
          "  pm.variables.set('hmacNonce', nonce);",
          "  pm.variables.set('hmacSignature', signature);",
          "}",
          "pm.variables.set('hmacExpected', JSON.stringify(entry));"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// 斷言 HTTP status 與對接文件「錯誤碼」章節的 code。",
          "const expected = JSON.parse(pm.variables.get('hmacExpected') || 'null');",
          "if (expected && expected.scenario === 'duplicateNonce' && pm.response.code !== 401) {",
          "  pm.test('nonce 重複：第一次送出不判定，請以同一 fixedNonce 再送一次', () => {});",
          "} else if (expected) {",
          "  pm.test(`HTTP ${expected.status}`, () => pm.response.to.have.status(expected.status));",
          "  pm.test(`code ${expected.code}`, () => pm.expect(pm.response.json().code).to.eql(expected.code));",
          "}"
        ]
      }
    }
  ],
  "item": [
    {
      "name": "Deposit（SPAY2 相容）",
      "item": [
        {
          "name": "POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）",
          "item": [
            {
              "name": "POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜正向",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "Signature",
                    "value": "{{spay2Signature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/agentOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "agentOrder"
                  ]
                },
                "description": "Signature header 放 agentApiSecret 原文（與 v1 接口同一組密鑰）的正常請求；不帶 X-Api-Key、X-Timestamp、X-Nonce、X-Signature。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"recordId\": \"{{recordId}}\",\n  \"type\": \"DEPOSIT\",\n  \"fromBankCode\": \"{{payerBankCode}}\",\n  \"fromAccount\": \"{{payerAccount}}\",\n  \"fromAccountName\": \"{{payerName}}\",\n  \"amount\": \"{{amount}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜冪等重送",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "Signature",
                    "value": "{{spay2Signature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/agentOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "agentOrder"
                  ]
                },
                "description": "先送「正向」，再以同一 recordId 與相同內容送本筆：回 HTTP 200、code 2000，不重複建單。同一 recordId 但 amount、fromBankCode、fromAccount 或 fromAccountName 不同回 HTTP 409、code 40046。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"recordId\": \"{{recordId}}\",\n  \"type\": \"DEPOSIT\",\n  \"fromBankCode\": \"{{payerBankCode}}\",\n  \"fromAccount\": \"{{payerAccount}}\",\n  \"fromAccountName\": \"{{payerName}}\",\n  \"amount\": \"{{amount}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜欄位不合法",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "Signature",
                    "value": "{{spay2Signature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/agentOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "agentOrder"
                  ]
                },
                "description": "簽章正確但 body 不合法：type 只接受 DEPOSIT。\n\n預期：HTTP 400、code 40005（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"recordId\": \"{{recordId}}\",\n  \"type\": \"WITHDRAW\",\n  \"fromBankCode\": \"{{payerBankCode}}\",\n  \"fromAccount\": \"{{payerAccount}}\",\n  \"fromAccountName\": \"{{payerName}}\",\n  \"amount\": \"{{amount}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /public/agentOrder — 建立 AGENT_ACCOUNT 入款單（SPAY2 相容）｜錯簽章",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "Signature",
                    "value": "{{spay2Signature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/agentOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "agentOrder"
                  ]
                },
                "description": "Signature header 放錯的密鑰（agentApiSecret 後多一個字元）。\n\n預期：HTTP 417、code 40002（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"recordId\": \"{{recordId}}\",\n  \"type\": \"DEPOSIT\",\n  \"fromBankCode\": \"{{payerBankCode}}\",\n  \"fromAccount\": \"{{payerAccount}}\",\n  \"fromAccountName\": \"{{payerName}}\",\n  \"amount\": \"{{amount}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Deposit",
      "item": [
        {
          "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單",
          "item": [
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜正向",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜冪等重送",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "先送「正向」，再以同一 agentOrderId、idempotencyKey 與相同 payload 送本筆：回 HTTP 200 與第一次建立的回應，不重複建單。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜欄位不合法",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "簽章正確但 body 不合法：amount 缺小數點（須為含 1 至 10 位小數的十進位字串）。\n\n預期：HTTP 400、code 40005（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"1000\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜錯簽章",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜過期 timestamp",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/depositOrder/assign — 建立並指派 Agent 入款單｜nonce 重複",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/assign",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "assign"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"payerBankCode\": \"{{payerBankCode}}\",\n  \"payerAccount\": \"{{payerAccount}}\",\n  \"payerName\": \"{{payerName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\",\n  \"agentCardId\": \"{{agentCardId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態",
          "item": [
            {
              "name": "GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜正向",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜錯簽章",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜過期 timestamp",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/depositOrder/{agentOrderId} — 查詢 Agent 目前入款狀態｜nonce 重複",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/depositOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "depositOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "HOUSE Card",
      "item": [
        {
          "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card",
          "item": [
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜正向",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"{{cardStatus}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜冪等重送",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "先送「正向」，再以同一 agentCardId 與相同內容送本筆：回 HTTP 200 與目前卡片，卡片不變更。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"{{cardStatus}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜欄位不合法",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "簽章正確但 body 不合法：cardStatus 只接受 ACTIVE 或 INACTIVE。\n\n預期：HTTP 400、code 40005（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"DELETED\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜錯簽章",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"{{cardStatus}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜過期 timestamp",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"{{cardStatus}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v1/agentApi/houseCard — 同步 OGP House Card｜nonce 重複",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentCardId\": \"{{agentCardId}}\",\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"displayName\": \"{{displayName}}\",\n  \"depositEnabled\": {{depositEnabled}},\n  \"withdrawalEnabled\": {{withdrawalEnabled}},\n  \"cardStatus\": \"{{cardStatus}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "GET /v1/agentApi/houseCard — 查詢 OGP House Card",
          "item": [
            {
              "name": "GET /v1/agentApi/houseCard — 查詢 OGP House Card｜正向",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/houseCard — 查詢 OGP House Card｜錯簽章",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/houseCard — 查詢 OGP House Card｜過期 timestamp",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/houseCard — 查詢 OGP House Card｜nonce 重複",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/houseCard",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "houseCard"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Withdrawal",
      "item": [
        {
          "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單",
          "item": [
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜正向",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜冪等重送",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "先送「正向」，再以同一 agentOrderId、idempotencyKey 與相同 payload 送本筆：回 HTTP 200 與第一次建立的回應，不重複建單。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜欄位不合法",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "簽章正確但 body 不合法：amount 缺小數點；Withdrawal 建立的欄位格式錯誤回 422。\n\n預期：HTTP 422、code 40005（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"1000\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜錯簽章",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜過期 timestamp",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "POST /v1/agentApi/withdrawalOrder — 建立Agent出款單｜nonce 重複",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentOrderId\": \"{{agentOrderId}}\",\n  \"amount\": \"{{amount}}\",\n  \"receiverBankCode\": \"{{receiverBankCode}}\",\n  \"receiverAccount\": \"{{receiverAccount}}\",\n  \"receiverName\": \"{{receiverName}}\",\n  \"idempotencyKey\": \"{{idempotencyKey}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態",
          "item": [
            {
              "name": "GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜正向",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜錯簽章",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜過期 timestamp",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/{agentOrderId} — 查詢Agent目前出款狀態｜nonce 重複",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/{{agentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "{{agentOrderId}}"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            }
          ]
        },
        {
          "name": "GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態",
          "item": [
            {
              "name": "GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜正向",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/byIdentity/{{encodedAgentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "byIdentity",
                    "{{encodedAgentOrderId}}"
                  ]
                },
                "description": "以 agentApiKey／agentApiSecret 簽章的正常請求。\n\n預期：HTTP 200、code 2000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜錯簽章",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/byIdentity/{{encodedAgentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "byIdentity",
                    "{{encodedAgentOrderId}}"
                  ]
                },
                "description": "pre-request script 算出正確簽章後改掉最後一個十六進位字元。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜過期 timestamp",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/byIdentity/{{encodedAgentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "byIdentity",
                    "{{encodedAgentOrderId}}"
                  ]
                },
                "description": "X-Timestamp 為現在減 600 秒，超出 ±300 秒。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            },
            {
              "name": "GET /v1/agentApi/withdrawalOrder/byIdentity/{encodedAgentOrderId} — 以URI安全識別碼查詢Agent出款狀態｜nonce 重複",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Api-Key",
                    "value": "{{hmacApiKey}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Timestamp",
                    "value": "{{hmacTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Nonce",
                    "value": "{{hmacNonce}}",
                    "type": "text"
                  },
                  {
                    "key": "X-Signature",
                    "value": "{{hmacSignature}}",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/agentApi/withdrawalOrder/byIdentity/{{encodedAgentOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "agentApi",
                    "withdrawalOrder",
                    "byIdentity",
                    "{{encodedAgentOrderId}}"
                  ]
                },
                "description": "先在目前 environment 把 fixedNonce 填為新的小寫 UUID v4；連送兩次，第一次為正常結果，第二次回 HTTP 401、code 40000。之後要再測須換新的 fixedNonce。\n\n預期：HTTP 401、code 40000（對接文件「錯誤碼」章節）；Tests 會斷言兩者。\n\nRead-only request。"
              },
              "response": []
            }
          ]
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": ""
    }
  ]
}
